﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master" AutoEventWireup="true"
    CodeBehind="OrderSet.aspx.cs" Inherits="Besture.UI.OrderSet" %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="editPage ">
        <ul class="tab">
            <li class="on" onclick="setTab(this,0)"><a href="javascript:void(0)" title="订单信息">订单信息</a></li>
            <li onclick="setTab(this,1)"><a href="javascript:void(0)" title="操作记录">操作记录</a></li>
        </ul>
        <div class="tab-ct-wrap ">
            <div class="tab1">
                <table cellspacing="0" cellpadding="0" class="table-module01 table_form">
                    <tr>
                        <th>
                            订单号：
                        </th>
                        <td>
                            <asp:Label ID="lblOrderNo" runat="server"></asp:Label>
                        </td>
                        <th>
                            下单用户：
                        </th>
                        <td>
                            <asp:Label ID="lblUserID" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            酒店名称：
                        </th>
                        <td>
                            <asp:Label ID="lblHotelsID" runat="server"></asp:Label>
                        </td>
                        <th>
                            房型信息：
                        </th>
                        <td>
                            <asp:Label ID="lblRoomID" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            住离日期：
                        </th>
                        <td>
                            <asp:Label ID="lblDepartureDate" runat="server" Style="color: #fd5900; font-weight: bold;"></asp:Label>
                        </td>
                        <th>
                            最晚抵店时间：
                        </th>
                        <td>
                            <asp:Label ID="lblLatestTime" runat="server" Style="color: #fd5900; font-weight: bold;"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <th>房价：
                        </th>
                        <td>
                            <asp:Label ID="lblCopePrice" runat="server" Style="color: #fd5900;"></asp:Label>
                        </td>
                        <th>房型设施：
                        </th>
                        <td>
                            <asp:Label ID="lblRoomFacilities" runat="server" Style="color: #fd5900; font-weight: bold;"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            积分抵扣价：
                        </th>
                        <td>
                            <asp:Label ID="lblDeductiblePrice" runat="server" Style="color: #fd5900;"></asp:Label>
                        </td>
                        <th>
                            夜间数抵扣价：
                        </th>
                        <td>
                            <asp:Label ID="lblNightNumber" runat="server" Style="color: #fd5900;"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            支付金额：
                        </th>
                        <td>
                            <asp:Label ID="lblActuallyPaidPrice" runat="server" Style="color: #fd5900;"></asp:Label>
                        </td>
                        <th>
                            支付时间：
                        </th>
                        <td>
                            <asp:Label ID="lblPayTime" runat="server"  Style="color: #fd5900;"></asp:Label>
                        </td>
                    </tr> 
                    <tr>
                        <th>
                            订单总价：
                        </th>
                        <td>
                            <asp:Label ID="lblCopePrice1" runat="server" Style="color: #fd5900;"></asp:Label>
                        </td>
                        <th>
                            订单状态：
                        </th>
                        <td>
                            <asp:Label ID="lblOrderStatus" runat="server" Style="color: #fd5900;"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <th class="Preferential">
                            优惠价：
                        </th>
                        <td class="Preferential">
                            <cms:TextBox runat="server" ID="txtPreferentialPrice" Width="50" ValidateExt="number" Text="200" MaxLength="10"></cms:TextBox>
                            <asp:Button  runat="server" CssClass="button" ID="btnPreferentialPrice" Text="确定" OnClick="BtnPreferentialPriceClick" />
                        </td>
                         <th class="ReservationNumber">
                            酒店预订号：
                        </th>
                        <td class="ReservationNumber">
                            <cms:TextBox runat="server" ID="txtReservationNumber" Required="False" MaxLength="100" WidthExt="Width_200"></cms:TextBox>
                            <asp:Button ID="btnReservationNumber" runat="server" CssClass="button" Text="确定" OnClick="BtnReservationNumberClick" />
                        </td>
                    </tr>
                    
                    <asp:Repeater ID="rpPassengerOrder" runat="server">
                        <ItemTemplate>
                            <tr  class="dxgvDataRowAlt_DevExOABlue">
                                <th>住客姓名：</th>
                                <td><%#Eval("PassengerName")%></td>
                                <th>住客姓名：</th>
                                <td><%#Eval("PassengerName")%></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                     
                    <tr>
                        <th>
                            联系人姓名：
                        </th>
                        <td>
                            <asp:Label ID="lblContactName" runat="server"></asp:Label>
                        </td>
                        <th>
                            联系人手机：
                        </th>
                        <td>
                            <asp:Label ID="lblContactPhone" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            联系人邮箱：
                        </th>
                        <td>
                            <asp:Label ID="lblContactEmail" runat="server"></asp:Label>
                        </td>
                        <th>
                            其它要求：
                        </th>
                        <td>
                            <asp:Label ID="lblOtherClaims" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            其它要求备注：
                        </th>
                        <td colspan="3">
                            <asp:Label ID="lblOtherClaimsRemark" runat="server"></asp:Label>
                        </td>
                    </tr>
                
                </table>
                <div class="buttonDiv">
                    <table width="100%" cellspacing="0" cellpadding="0" class="table-module01">
                        <tbody >
                            <tr>
                                <th width="130" align="right">&nbsp;</th>
                                <td>
                                    <asp:Button ID="Button2" runat="server" CssClass="button" OnClick="BtnSubmitClick" Text="预约确认" /><asp:Button
                                        ID="btnClose" runat="server" CssClass="button" Text="预约取消" OnClick="btnClose_Click" />
                                    <input type="button" class="button" value="返回" onclick="location.href='<%=ListUrl() %>'" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="tab1" style="display: none;">
                <cms:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" Width="100%"
                    AutoGenerateColumns="False" KeyFieldName="ID" OnCustomCallback="GridCustomCallback">
                    <Columns>
                        <%--<cms:GridViewDataTextColumn Caption="操作员" VisibleIndex="3" Width="" HeaderStyle-HorizontalAlign="Center"
                            CellStyle-HorizontalAlign="Center" FieldName="AdminUserName">
                            <Settings AutoFilterCondition="Contains"></Settings>
                        </cms:GridViewDataTextColumn>--%>
                        <cms:GridViewDataTextColumn Caption="操作内容" VisibleIndex="4" Width="" HeaderStyle-HorizontalAlign="Center"
                            CellStyle-HorizontalAlign="Center" FieldName="LogContent">
                            <Settings AutoFilterCondition="Contains"></Settings>
                        </cms:GridViewDataTextColumn>
                        <cms:GridViewDataDateColumn Caption="操作时间" VisibleIndex="5" Width="" HeaderStyle-HorizontalAlign="Center"
                            CellStyle-HorizontalAlign="Center" >
                            <DataItemTemplate>
                                <%#Eval("UpdateTime") %>
                            </DataItemTemplate>
                        </cms:GridViewDataDateColumn>
                    </Columns>
                </cms:ASPxGridView>
            </div>
        </div> 
    </div>
    <script type="text/javascript">
        $(function() { 
            var vState = $("#<%=lblOrderStatus.ClientID%>").find("span").text().trim();
            //4 = 已付款 
            if (vState < 4) {
                //ReadOnly="true" 
                //可编辑 优惠价
                //酒店预订号 隐藏
                $("#<%=lblOrderStatus.ClientID%>").parents("tr").next("tr").find(".ReservationNumber").css("display","none");
                $("#<%=lblOrderStatus.ClientID%>").parents("tr").next("tr").find(".ReservationNumber").css("display","none");

            } else {
                //不可编辑 优惠价
                //酒店预订号 可编辑 
                $("#<%=lblOrderStatus.ClientID%>").parents("tr").next("tr").find(".Preferential").css("display","none");
                $("#<%=lblOrderStatus.ClientID%>").parents("tr").next("tr").find(".Preferential").css("display","none");
            }
        })
    </script>
</asp:Content>
